import { Button } from 'antd'
import { goHome } from 'App'
import { useHistory } from 'react-router'

const Login = () => {
  const history = useHistory()
  return (
    <div>
      <div>Login page</div>
      <Button onClick={() => goHome(history)}>go Home</Button>
    </div>
  )
}

export default Login
